﻿<Window x:Class="Gao.Poker.App.Win.CompetitionBonusWin"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="奖金分配" Width="400" Height="400" WindowStartupLocation="CenterScreen" ResizeMode="NoResize">
    <Grid Margin="5">
        <Grid.RowDefinitions>
            <RowDefinition Height="50"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="50"/>
        </Grid.RowDefinitions>
        <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Text="{Binding Path=Competition.Name}"
                   FontSize="32" FontWeight="Bold"/>

        <DataGrid Grid.Row="1" Margin="1" RowHeight="30" Name="dgRight"  AutoGenerateColumns="False"
                  SelectionMode="Single"  CanUserAddRows="True" CellStyle="{StaticResource Body_Content_DataGrid_Centering}"
                  AlternatingRowBackground="#FFF9CFCF" AlternationCount="2"
                  ItemsSource="{Binding Path=Bounses, Mode=TwoWay}"
                  FontSize="16" Height="284">
            <DataGrid.Columns>
                <DataGridTextColumn Header="名次" Width="120" HeaderStyle="{StaticResource CenterAlignmentColumnHeaderStyle}" Binding="{Binding Path=Rank, Mode=TwoWay}"/>
                <DataGridTextColumn Header="奖金比例" Width="*" HeaderStyle="{StaticResource CenterAlignmentColumnHeaderStyle}" Binding="{Binding Path=Scale, Mode=TwoWay}"/>
            </DataGrid.Columns>
        </DataGrid>

        <StackPanel Orientation="Horizontal"  Grid.Row="3" Margin="5" VerticalAlignment="Center" HorizontalAlignment="Center">
            <Button Padding="5" Style="{DynamicResource Orrange}" Width="60" FontSize="16" Height="35" Name="btnLogin" 
                    Click="Confirm_Click">确定</Button>
        </StackPanel>
    </Grid>
</Window>
